package com.common.repository.casemanage;

import com.common.entity.casemanage.CaseEntity;
import com.common.entity.casemanage.CaseRiskEntity;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author johnny
 */
public interface CaseRiskRepository extends JpaRepository<CaseRiskEntity, Long> {


    Long countByCaseNum(String caseNum);

    Long countByPersonalId(Long personalId);


    CaseRiskEntity findByCaseId(Long caseId);
}